package com.ruoyi.charging.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计费规则对象 charging_cost_rule
 * 
 * @author ruoyi
 * @date 2023-09-13
 */
public class ChargingCostRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 充电站编号 */
    @Excel(name = "充电站编号")
    private Long stationId;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private Integer gunType;

    /** 计费名称 */
    @Excel(name = "计费名称")
    private String name;

    /** 起始时间 */
    @Excel(name = "起始时间")
    private Long startTime;

    /** 结束时间 */
    @Excel(name = "结束时间")
    private Long endTime;

    /** 电费 */
    @Excel(name = "电费")
    private BigDecimal powerFee;

    /** 服务费 */
    @Excel(name = "服务费")
    private BigDecimal serviceFee;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStationId(Long stationId) 
    {
        this.stationId = stationId;
    }

    public Long getStationId() 
    {
        return stationId;
    }
    public void setGunType(Integer gunType) 
    {
        this.gunType = gunType;
    }

    public Integer getGunType() 
    {
        return gunType;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStartTime(Long startTime) 
    {
        this.startTime = startTime;
    }

    public Long getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Long endTime) 
    {
        this.endTime = endTime;
    }

    public Long getEndTime() 
    {
        return endTime;
    }
    public void setPowerFee(BigDecimal powerFee) 
    {
        this.powerFee = powerFee;
    }

    public BigDecimal getPowerFee() 
    {
        return powerFee;
    }
    public void setServiceFee(BigDecimal serviceFee) 
    {
        this.serviceFee = serviceFee;
    }

    public BigDecimal getServiceFee() 
    {
        return serviceFee;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("stationId", getStationId())
            .append("gunType", getGunType())
            .append("name", getName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("powerFee", getPowerFee())
            .append("serviceFee", getServiceFee())
            .toString();
    }
}
